package org.liuyunfeng.web;

import org.liuyunfeng.feign.HelloFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: TanJingyu
 * @create: 2022-06-20 10:23
 **/
@RestController
@RequestMapping("/feign")
public class FeignController {
    @Autowired
    private HelloFeign helloFeign;

    @GetMapping
    public Object feignClient() {
        return helloFeign.getTest();
    }

}

    